package com.ninth_group.mapper;

import com.ninth_group.po.Forecast7D;
import com.ninth_group.vo.Forecast7DVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface Forecast7DMapper {
    Forecast7DMapper INSTANCE = Mappers.getMapper(Forecast7DMapper.class);

    /**
     * 将Forecast7D对象转换为Forecast7DVO对象
     * @param forecast7D Forecast7D实体类
     * @return Forecast7DVO对象
     */
    Forecast7DVO toVo(Forecast7D forecast7D);

    // 列表转换（MapStruct 自动实现）
    List<Forecast7DVO> toVo(List<Forecast7D> list);
}
